Base Attack Bonus
{{#switch: {{{Type}}}
| High = +{{#expr: {{{Level}}} - 0.4999 round 0}}
| Medium = +{{#expr: {{{Level}}} * 0.75 - 0.4999 round 0}}
| Low = +{{#expr: {{{Level}}} * 0.50 - 0.4999 round 0}}
| ?
}}Expecting values for {{{Type}}} High,Medium,Low and {{{Level}}} 1-20.